package com.zhangkunhao.notes.entity.Do;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;

/**
 * 禁止私信的黑名单
 * @author 20642
 */
@TableName(name = "tb_blacklist")
public class BlackList {
    @TableId(value = "id")
    private Integer id;
    @TableField(value = "from_user_id")
    private Integer fromUserId;
    /**
     * 拉黑的对象id
     */
    @TableField(value = "for_user_id")
    private Integer forUserId;


    public BlackList() {
    }

    public BlackList(Integer id, Integer fromUserId, Integer forUserId) {
        this.id = id;
        this.fromUserId = fromUserId;
        this.forUserId = forUserId;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id:
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return fromUserId
     */
    public Integer getFromUserId() {
        return fromUserId;
    }

    /**
     * 设置
     *
     * @param fromUserId:
     */
    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    /**
     * 获取
     *
     * @return forUserId
     */
    public Integer getForUserId() {
        return forUserId;
    }

    /**
     * 设置
     *
     * @param forUserId:
     */
    public void setForUserId(Integer forUserId) {
        this.forUserId = forUserId;
    }

    @Override
    public String toString() {
        return "BlackList{id = " + id + ", fromUserId = " + fromUserId + ", forUserId = " + forUserId + "}";
    }
}
